﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;

public partial class Artigo_VisualizarArtigoAG : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (Request.QueryString["i"] != null)
        //{
        //    getArtigo(Request.QueryString["i"].ToString());
        //}
    }
    [WebMethod]
    public static Artigo getArtigo(string idArtigo)
    {
        return Artigo.getArtigoById(new Guid(idArtigo));
    }
    [WebMethod]
    public static List<Avaliador> getAvaliadores(string idArtigo)
    {
        return Artigo.getAllAvaliador(new Guid(idArtigo));
    }
}